package com.wk.springboot.spring.lifeCircle;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 *
 * @User admin
 * @Date 2020/11/25 14:25
 **/
@Component
public class JSR250BeanLifeCircle {

    @PostConstruct
    public void init(){
        System.out.println("JSR250BeanLifeCircle初始化");
    }

    @PreDestroy
    public void destroy(){
        System.out.println("JSR250BeanLifeCircle销毁");
    }

}
